package com.heima.service.impl;

import com.baomidou.mybatisplus.core.metadata.OrderItem;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.heima.mapper.ClassMapper;
import com.heima.pojo.dto.ClassDto;
import com.heima.pojo.dto.ClassPageQueryDTO;
import com.heima.pojo.vo.ClassPageVo;
import com.heima.service.ClassService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ClassServiceImpl extends ServiceImpl<ClassMapper,ClassDto> implements ClassService {
    @Autowired
    private ClassMapper classMapper;
    @Override
    public void addClass(ClassDto tbTaskType) {
        //mapper端查到数据返回true
        classMapper.insert(tbTaskType);

    }

//    /**
//     * 分页查询
//     * @param classPageQueryDTO
//     * @return
//     */
//    @Override
//    public ClassPageVo pageQuery(ClassPageQueryDTO classPageQueryDTO) {
//        //分页条件
//        Page<ClassDto> page = Page.of(classPageQueryDTO.getPageIndex(), classPageQueryDTO.getPageSize());
//        //分页查询
//
//        return null;
//    }
}
